﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace dzs.Web.supplierinfo
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    int sid = (Convert.ToInt32(strid));
                    ShowInfo(sid);
                }
            }
        }

        private void ShowInfo(int sid)
        {
            dzs.BLL.supplierinfo bll = new dzs.BLL.supplierinfo();
            dzs.Model.supplierinfo model = bll.GetModel(sid);            
            this.lblsno.Text = model.sno;
            this.lblsname.Text = model.sname;
            this.lblsadd.Text = model.sadd;
            this.lblslink.Text = model.slink;
            this.lblsphone.Text = model.sphone;
            this.lblsfax.Text = model.sfax;
            this.lblsemail.Text = model.semail;
            this.lblpslink.Text = model.pslink;
            this.lblpsphone.Text = model.psphone;
            this.lblpsfax.Text = model.psfax;
            this.lblpsemail.Text = model.psemail;

        }


    }
}
